using System;

namespace Crainiate.Data.Persistence.Providers.SqlServer
{
	[AttributeUsage(AttributeTargets.Property)]
	public class MaximumLengthAttribute: System.Attribute
	{
		private int _length;

		public MaximumLengthAttribute(int length)
		{
            _length = length;
		}

		public int Value
		{
			get
			{
				return _length;
			}
		}
	}

    [AttributeUsage(AttributeTargets.Property)]
    public class FixedAttribute : System.Attribute
    {
        private int _precision;
        private int _scale;

        public FixedAttribute(int precision, int scale)
        {
            _precision = precision;
            _scale = scale;
        }

        public int Precision
        {
            get
            {
                return _precision;
            }
        }

        public int Scale
        {
            get
            {
                return _scale;
            }
        }
    }
}
